FileDialog

@Composable
fun FrameWindowScope.FileDialog(title: String, isLoad: Boolean, onResult: (result: Path?) -> Unit)

This function displays a file dialog.

Parameters

title

The title of the dialog.

isLoad

A flag to indicate whether the dialog is for loading a file.

onResult

The action to be performed when the dialog is closed.

Example usage:

FileDialog(
title = "Choose a file",
isLoad = true,
onResult = { result -> /* action to perform with the result */}
)